#pragma once
#include "Actor.h"

namespace mini
{
	struct Instance_P
	{
		CPoint3F position;
	};

	struct Instance_PC : public Instance_P
	{
		CPoint3F color;
	};
	class CInstance : public CActor
	{
	public:
		CInstance();
		virtual ~CInstance();
		void setInstanceData(void* pData, int nSize, int nCount);
		void updateInstanceData(void* pData, int nSize, int nCount);

	private:
		void updateBoundBox();

	private:
		CGPUBuffer* mpInstanceBuffer = nullptr;
		int mInstanceTypeSize = 0;
		int mInstanceCount = 0;
	};
}